<?php
    include_once("../dao/bannerDAO.php");
    
    function addBanner($proID, $path){
        return insertBa($proID, $path);
    }
    
    function updateBanner($bannerID, $proID, $path){
        return updateBa($bannerID, $proID, $path);
    }
    
    function countNumBanners(){
        return countTotalNumber();
    }
    
    function getBannerBy($start_position, $row_per_page){
        return findBannerBy($start_position, $row_per_page);
    }
    
    function getBannerPathBy($banID){
        return findBannerPathBy($banID);
    }
    
    function deleteBannerBy($id){
        return deleteBy($id);
    }
    
    function getAllBanner() {
        return loadAllBanner();
    }
?>